package dfbz.demo04;

public class Test05 {
    public static void main(String[] args) {
        int num3=0;
        int num7=0;
        int i=1;
        while (i<100){
            if(i%3==0){
                num3+=i;
            }
            if(i%7==0){
                num7+=i;
            }
            i++;
        }
        int sum1=num3+num7;
        System.out.println(sum1);
    }
}
